package com.smc.controller;

import com.alibaba.excel.metadata.Sheet;
import com.smc.utils.ExcelUtil;

import java.util.List;

/**
 * @author C12645
 * @description 导入
 * @date 2021/10/25 15:53
 **/
public class TestController {
    public static void main(String[] args) {
        String filePath = "G:\\test.xlsx";
        List<Object> objects = ExcelUtil.readLessThan1000Row(filePath);
        //System.out.println(objects);
        //第一个1代表sheet1, 第二个1代表从第几行开始读取数据，行号最小值为0
        Sheet sheet = new Sheet(2, 0);
        List<Object> objects1 = ExcelUtil.readLessThan1000RowBySheet(filePath, sheet);
        System.out.println(objects1);

    }
}
